package com.zhangxx.web.common.model;

public enum PayStatus {

    PAY_ERRER(800001,"支付失败"),
    NOT_FOUND_PAYTYPE(800002,"支付方式不存在"),
    PAYAMOUNT_ERRER(800003,"支付金额不正确"),
    REPEATPAY_ERRER(800004,"请勿重复支付"),
    INPAYMENT_ERRER(800005,"订单正在付款,请稍后在试"),
    NOT_FOUND_ORDER(800006,"支付订单不存在"),
    EMPTYORDER_ERRER(800007,"请选择要支付的订单"),
    EMPTYPAYTYPE_ERROR(800008,"请选择支付方式"),
    EMPTYRETURNURL_ERROR(800009,"返回商铺url地址为空"),
    PAYOUTTIME_ERROR(800010,"支付超时"),
    EMPTYPAYTIME_ERROR(800011,"支付时间为空"),
    ;

    private int code;

    private String message;

    private PayStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int value() {
        return code;
    }

    public String message() {
        return message;
    }

    @Override
    public String toString() {
        return Integer.toString(this.code);
    }
}
